//
//  FFPayCenter.m
//  Components
//
//  Created by IT.Bear on 16/7/7.
//  Copyright (c) 2016年 fashionfhinger. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FFPayInfo.h"
#import "FFPayHandler.h"
#import <UIKit/UIKit.h>

typedef void (^PayAction)(FFPayResult result);

@interface FFPayCenter : NSObject


+(FFPayCenter *)sharedInstance;

- (void)setResultAction:(PayAction)block;

- (id<FFPayHandler>)buildPayHandlerWith:(FFPayInfo *)payInfo viewController:(UIViewController *)fromVC;

- (void)handleAlixpayURL:(NSURL *)url;
- (void)handleWeChatURL:(NSURL *)url;

@end
